<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>移动端学成在线</title>
    <link rel="stylesheet" href="./normalize.css">
    <link rel="stylesheet" href="./重做.css">
</head>

<body>
    <div class="qq">
        <span class="lan">欢迎你的到来</span>
        <img src="./images/spig.gif" alt="" class="girl">
        <!-- logo部分 -->
        <a href="javascript:;" class="logo"><img src="./images/logo.png" alt=""></a>
        <!-- 导航栏部分 -->
        <nav>
            <a href="javascript:;">首页</a>
            <a href="javascript:;">课程</a>
            <a href="javascript:;">职业规划</a>
        </nav>
        <!-- 搜素模块 -->
        <div class="search">
            <input type="text" value="" placeholder="输入关键字">
            <button></button>
        </div>
        <!-- 用户模块 -->
        <div class="user">
            <a href="javascript:;"></a>
            <span>qq-lilei</span>
        </div>
    </div>
    <!-- banner开头 -->
    <div class="banner">
        <div class="subnav">
            <ul>
                <li><a href="javascript:;">前端开发 <span> &gt; </span></a></li>
                <li><a href="javascript:;">后端开发 <span> &gt; </span></a></li>
                <li><a href="javascript:;">移动开发 <span> &gt; </span></a></li>
                <li><a href="javascript:;">人工智能 <span> &gt; </span></a></li>
                <li><a href="javascript:;">商业预测 <span> &gt; </span></a></li>
                <li><a href="javascript:;">云计算 <span> &gt; </span></a></li>
                <li><a href="javascript:;">从测试 <span> &gt; </span></a></li>
                <li><a href="javascript:;">UI设计 <span> &gt; </span></a></li>
                <li><a href="javascript:;">产品 <span> &gt; </span></a></li>
            </ul>
        </div>
        <div class="course">
            <h2>我的课程表</h2>
            <div class="bd">
                <ul>
                    <li>
                        <h4>继续学习 程序语言设计</h4>
                        <p>正在学习-使用对象</p>
                    </li>
                    <li>
                        <h4>继续学习 程序语言设计</h4>
                        <p>正在学习-使用对象</p>
                    </li>
                </ul>
                <a href="javascript:;" class="more">全部课程</a>
            </div>
        </div>
    </div>
    <!-- 精品推荐开头 -->
    <div class="goods">
        <h3>精品推荐</h3>
        <a href="javascript:;">jQuery</a>
        <a href="javascript:;">Spark</a>
        <a href="javascript:;">MySQL</a>
        <a href="javascript:;">Java</a>
        <a href="javascript:;">MySQL</a>
        <a href="javascript:;">修改兴趣</a>
    </div>
    <!-- 精品推荐结束 -->
    <!-- box核心区域开始 -->
    <div class="box">
        <div class="box-hd">
            <h3>精品推荐</h3>
            <a href="javascript:;">查看全部</a>
        </div>
        <div class="box-bd">
            <ul>
                <li>
                    <img src="./images/1.png" alt="">
                    <h4>Think PHP 5.0 博客系统实战项目演练</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/2.png" alt="">
                    <h4>Android 网络图片加载框架详解</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/3.png" alt="">
                    <h4>Angular 2 最新框架+主流技术+项目实战</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/4.png" alt="">
                    <h4>Android Hybrid APP开发实战 H5+原生！</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/4.png" alt="">
                    <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/1.png" alt="">
                    <h4>Think PHP 5.0 博客系统实战项目演练</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/2.png" alt="">
                    <h4>Android 网络图片加载框架详解</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/3.png" alt="">
                    <h4>Angular 2 最新框架+主流技术+项目实战</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/4.png" alt="">
                    <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/4.png" alt="">
                    <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/3.png" alt="">
                    <h4>Angular 2 最新框架+主流技术+项目实战</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
                <li>
                    <img src="./images/2.png" alt="">
                    <h4>Android 网络图片加载框架详解</h4>
                    <div class="info">
                        <span>高级</span> · 1125人在学习
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <!-- box区域结束 -->

    <!-- 第二部分开始 -->
    <div class="aa">
        <div class="one">编程入门</div>
        <div class="two">
            <a href="javascript:;">热门</a>
            <a href="javascript:;">初级</a>
            <a href="javascript:;">中级</a>
            <a href="javascript:;">高级</a>
            <a href="javascript:;">查看全部</a>
        </div>
    </div>
    <div class="ab">
        <div class="box-one">
            <img src="./images/001.png" alt="">
        </div>
        <div class="qw">
            <div class="box-two">
                <img src="./images/002.png" alt="">
            </div>
            <div class="box-three">
                <ul>
                    <li><img src="./images/003.png" alt="">
                        <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                        <div class="five">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                    <li><img src="./images/004.png" alt="">
                        <h4>Kami2首页界面切换效果 </h4>
                        <div class="five six">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                    <li><img src="./images/005.png" alt="">
                        <h4>Unity Profiler从入门到精通</h4>
                        <div class="five six">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                    <li><img src="./images/006.png" alt="">
                        <h4>Cocos2d-x 引擎源码中的纹理优化 </h4>
                        <div class="five">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>

                </ul>
            </div>
        </div>
    </div>

    <!-- 第三部分开始 -->
    <div class="aa">
        <div class="one new">数据分析师</div>
        <div class="two">
            <a href="javascript:;">热门</a>
            <a href="javascript:;">初级</a>
            <a href="javascript:;">中级</a>
            <a href="javascript:;">高级</a>
            <a href="javascript:;">查看全部</a>
        </div>
    </div>
    <div class="ab">
        <div class="box-one">
            <a href="javascript:;"><img src="./images/007.png" alt=""></a>
        </div>
        <div class="qw">
            <div class="box-two">
                <a href="javascript:;"><img src="./images/008.png" alt=""></a>
            </div>
            <div class="box-three">
                <ul>
                    <li><a href="javascript:;"><img src="./images/004.png" alt=""></a>
                        <h4>Kami2首页界面切换效果 </h4>
                        <div class="five six">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                    <li><img src="./images/003.png" alt="">
                        <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                        <div class="five">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                    <li><img src="./images/006.png" alt="">
                        <h4>Cocos2d-x 引擎源码中的纹理优化 </h4>
                        <div class="five">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                    <li><img src="./images/005.png" alt="">
                        <h4>Unity Profiler入门 </h4>
                        <div class="five six">
                            <p><span>高级</span> • 1125人在学习</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 第三部分结束 -->

    <!-- 第四部分开始 -->
    <div class="aa">
        <div class="one new">机械开发师</div>
        <div class="two">
            <a href="javascript:;">热门</a>
            <a href="javascript:;">初级</a>
            <a href="javascript:;">中级</a>
            <a href="javascript:;">高级</a>
            <a href="javascript:;" class="three">查看全部</a>
        </div>
    </div>
    <div class="ad">
        <ul>
            <li>
                <img src="./images/003.png" alt="">
                <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/006.png" alt="">
                <h4>Cocos2d-x 引擎源码中的纹理优化 </h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/005.png" alt="">
                <h4>Unity Profiler入门 </h4>
                <div class="five six">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/009.png" alt="">
                <h4>微软人工智能-数据分析平台 </h4>
                <div class="five six">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/004.png" alt="">
                <h4>Kami2首页界面切换效果 </h4>
                <div class="five six">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
        </ul>
    </div>
    <!-- 第四部分结束 -->

    <!-- 第五部分开始 -->
    <div class="aa">
        <div class="one">前端开发师</div>
        <div class="two">
            <a href="javascript:;">热门</a>
            <a href="javascript:;">初级</a>
            <a href="javascript:;">中级</a>
            <a href="javascript:;">高级</a>
            <a href="javascript:;">查看全部</a>
        </div>
    </div>
    <div class="ad">
        <ul>
            <li>
                <img src="./images/009.png" alt="">
                <h4>微软人工智能-数据分析平台 </h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/005.png" alt="">
                <h4>Unity Profiler入门 </h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/006.png" alt="">
                <h4>Cocos2d-x 引擎源码中的纹理优化 </h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/004.png" alt="">
                <h4>Kami2首页界面切换效果 </h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
            <li>
                <img src="./images/003.png" alt="">
                <h4>Android Hybrid APP开发实战 H5+原生!</h4>
                <div class="five">
                    <p><span>高级</span> • 1125人在学习</p>
                </div>
            </li>
        </ul>
    </div>
    <!-- 第五部分结束 -->

    <!-- 页脚开始 -->
    <div class="footer">
        <div class="copyright">
            <img src="./images/logo.png" alt="">
            <p>学成在线致力于普及中国最好的教育，它与中国一流大学和机构合作提供在线课程。<br>
                · 2017年XTCG Inc.保留所有权利。-沪ICP备15025210号
            </p>
            <a href="javascript:;" class="app">下载APP</a>
        </div>
        <div class="links">
            <dl>
                <dt>关于学成网</dt>
                <dd><a href="javascript:;">关于</a></dd>
                <dd><a href="javascript:;">团队管理</a></dd>
                <dd><a href="javascript:;">工作机会</a></dd>
                <dd><a href="javascript:;">客户服务</a></dd>
                <dd><a href="javascript:;">帮助</a></dd>
            </dl>
            <dl>
                <dt>新手指南</dt>
                <dd><a href="javascript:;">如何注册</a></dd>
                <dd><a href="javascript:;">如何选课</a></dd>
                <dd><a href="javascript:;">如何拿到毕业证</a></dd>
                <dd><a href="javascript:;">学分是什么</a></dd>
            </dl>
            <dl>
                <dt>合作伙伴</dt>
                <dd><a href="javascript:;">合作机构</a></dd>
                <dd><a href="javascript:;">合作导师</a></dd>
            </dl>
        </div>
    </div>
    <!-- 页脚结束 -->

    <!-- 回到页面顶部 -->
    <div class="go">
        <div class="change">返回顶部</div>
    </div>

    <script>
        var doc = document.documentElement;
        var go = document.querySelector('.go');
        var banner = document.querySelector('.box');
        doc.addEventListener('click', function (e) {
            e.preventDefault();
        })

        var Top = banner.offsetTop;
        var moveTop = go.offsetTop;

        document.addEventListener('scroll', function () {
            if (doc.scrollTop >= Top) {
                go.style.display = 'block';
                go.style.position = 'fixed';
                go.style.top = 4.5 + 'rem'
            } else {
                go.style.display = 'none';
            }
        })

        go.addEventListener('touchstart', fn)

        function fn(){
            myAnimation(0);
            window.pageYOffset=doc.scrollTop;
        }
        

        var num = 8; //控制速度变化系数
        var speed = 0;
        var timer = null;

        function myAnimation(target) {
            //先关闭定时器，只让一个定时器运行
            clearInterval(timer);
            timer = setInterval(function () {
                speed = (target - window.pageYOffset) / num; //要放到定时器里面，不断获取最新值
                speed = speed > 0 ? Math.ceil(speed) : Math.floor(speed);
                if (window.pageYOffset < target) {
                    clearInterval(timer);
                    return;
                }
                window.pageYOffset = window.pageYOffset + speed
                window.scrollTo(0, window.pageYOffset)
            }, 30)
        }

    </script>
</body>

</html>